<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img{
            width: 100px;
            height: 100px;
            position: fixed;
            left: 0px;
            top: 0px;
        }
    </style>
    <script>
        document.onmousemove = function(e){
            var li=document.getElementById("ia");
            li.style.left =e.clientX +5+"px";
            li.style.top =e.clientY +5+"px";

        }
    </script>
</head>
<body>
<img src="/1.jpg" alt="" id="ia">
</body>
</html>